
// psycheDlg.h : header file
//

#pragma once
#include "psyche.h"

class MsgSn;
// CpsycheDlg dialog
class CpsycheDlg : public CDialog
{
// Construction
public:
	CpsycheDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_PSYCHE_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support


// Implementation
protected:
	HICON m_hIcon;
	CListCtrl	m_list;
	CListCtrl	m_history;
	CEdit		m_edit;
	CEdit		m_name;
	CEdit		m_password;
	CStatic		m_target;
	map<std::string,int>	m_friends;
	CString		m_tname;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedOk();
	afx_msg void OnBnClickedSignup();
	afx_msg void OnNMDblclkList2(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnBnClickedSignIn();
	afx_msg void OnBnClickedClose();
	void	addFriend(std::string name);
	void	clearFriends();
public:
	void	onAddFriend(MsgSn* sn);
	void	onTalkMsg(MsgSn* sn);
};
